package reflect;


public class Person {
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void say(String message){
        System.out.println("Person:"+ message);
    }
    public  void say(String message,int sum){
        for (int i = 0; i <sum ; i++) {
            System.out.println("Person:"+message);
        }
    }



    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void  sayHello(){
        System.out.println("Person：大家好！");
    }
    public void sayHI(){
        System.out.println("Person：Hi!");

    }
    private void hehe(){
        System.out.println("我是Person：呵呵");
    }

}
